﻿using bat_sym.SimulationLogic.Rules;
using bat_sym.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace bat_sym.SimulationLogic
{
    public class BootStraper
    {
        private MainWindowViewModel _mainWindowViewModel;
        private Simulation _simulation;

        public BootStraper()
        {
            _simulation = new Simulation(100, 45, 30, 90);
            _simulation.AddRule(new Hunting(95));
            _simulation.AddRule(new Sharing(45));            
            _simulation.AddRule(new Eating());
            _simulation.AddRule(new NaturalDeath());
            _simulation.AddRule(new Reproduction(365));
            _mainWindowViewModel = new MainWindowViewModel(_simulation);
        }

        public void StartApplication()
        {
            var window = new MainWindow();
            window.DataContext = _mainWindowViewModel;
            window.Show();
        }
    }
}
